import {
  request,
} from "@rabbit.do/rabbit";

// 删除代金券列表数据
export const deleteCouponList = (data) => request({
  url: "/swan/operation/coupon/delete",
  data,
});

// 查询代金券可用项目数据
export const fetchProductData = (url) => request({
  url,
  data: {
    "pageNum": 1,
    "pageSize": 10,
  },
});

// 新增代金券列表数据
export const createCouponList = (data) => request({
  url: '/swan/operation/coupon/create',
  data,
});

// 修改代金券列表数据
export const updateCouponList = (data) => request({
  url: '/swan/operation/coupon/update',
  data,
});
